﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:local="clr-namespace:myBoard.App" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	x:Class="myBoard.App.Notification"
	x:Name="Window"
	Title="Notification"
	Width="200" Height="Auto" VerticalAlignment="Top" AllowsTransparency="True" ResizeMode="NoResize" ShowInTaskbar="False" SizeToContent="WidthAndHeight" Topmost="True" WindowStyle="None" Background="{x:Null}" mc:Ignorable="d" Top="0">
	<Window.Resources>
		<Storyboard x:Key="ShowCloseBt">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_closeBt" Storyboard.TargetProperty="(UIElement.Opacity)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1" KeySpline="0,1,1,1"/>
			</DoubleAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_closeBt" Storyboard.TargetProperty="(UIElement.Visibility)" Duration="00:00:00.0010000">
				<DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Visible}"/>
			</ObjectAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="HideCloseBt">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_closeBt" Storyboard.TargetProperty="(UIElement.Opacity)">
				<DiscreteDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_closeBt" Storyboard.TargetProperty="(UIElement.Visibility)">
				<DiscreteObjectKeyFrame KeyTime="00:00:00.3000000" Value="{x:Static Visibility.Collapsed}"/>
			</ObjectAnimationUsingKeyFrames>
		</Storyboard>
	</Window.Resources>
	<Window.Triggers>
		<EventTrigger RoutedEvent="Mouse.MouseEnter">
			<BeginStoryboard Storyboard="{StaticResource ShowCloseBt}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="Mouse.MouseLeave">
			<BeginStoryboard x:Name="HideCloseBt_BeginStoryboard" Storyboard="{StaticResource HideCloseBt}"/>
		</EventTrigger>
	</Window.Triggers>

	<Grid Height="146.08">
		<Border x:Name="LayoutRoot" VerticalAlignment="Top" Background="#4D000000" BorderBrush="#FFFFFFFF" BorderThickness="2,2,2,2" CornerRadius="8,8,8,8">
			<StackPanel VerticalAlignment="Top">
				<TextBlock x:Name="_title" Margin="6,4,0,0" FontFamily="Calibri" FontSize="16" Foreground="#FFFFFFFF" Text="myTwitter" TextWrapping="Wrap"/>
				<TextBlock x:Name="_desc" Margin="6,10,6,6" FontFamily="Calibri" FontSize="12" Foreground="#FFFFFFFF" Text="Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec." TextWrapping="Wrap" TextAlignment="Justify"/>
			</StackPanel>
		</Border>
		<local:CloseBt x:Name="_closeBt" HorizontalAlignment="Right" VerticalAlignment="Top" d:LayoutOverrides="Width, Height" Visibility="Collapsed" Opacity="0"/>
	</Grid>
</Window>